import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import './assets/tailwind.css'
import 'font-awesome/css/font-awesome.css'

import router from './router'
const app = createApp(App);
const globalConfig = {
  fontSize: {
    base: '16px',
    large: '18px',
    huge: '20px',
  },
};

app.use(ElementPlus, {
  locale: zhCn,
  configProvider: (config) => ({
    ...globalConfig,
    ...config,
  }),
})

const pinia = createPinia()
app.use(pinia.use(piniaPluginPersist))
app.use(router)
app.mount('#app')